package com.miao.FeignClient;

import com.miao.FeignClient.po.CourseIndex;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

//远程调用es的接口
@FeignClient(value = "search", fallbackFactory = fallbackFactoryOfEs.class)
public interface EsClient {
    @PostMapping("/search/index/course")
    public Boolean add(@RequestBody CourseIndex courseIndex);
}
